package com.ziytek.web.citizen.config;

import com.ziytek.web.citizen.constant.ServerConstant;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author fenghx
 * @version v1.0
 * @className SpringConfig
 * @date 2023/6/27 17:08
 **/
@Data
@Slf4j
@Component
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = ServerConstant.SPRING_CONFIG)
public class SpringConfig {
    private List<Config> configs;
}

